package com.yonyou.brigade.third_parties.ctrip.bigcustomer.dao;

import com.yonyou.brigade.third_parties.ctrip.bigcustomer.model.CtripBigUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-08-17
 */
public interface CtripBigUserMapper extends BaseMapper<CtripBigUser> {

    List<CtripBigUser> findNeedAsynUsersByListAuth(List<String> userIds);

    /**
     * 查找已经同步过，现在需要更新授权人的用户
     * @param userIds
     * @return
     */
    List<CtripBigUser> findCtripUserListForUpdate(List<String> userIds);

    List<String> selectUserIdByDept(List<String> list);

    void insertCtripUserBatch(List<CtripBigUser> ctripUsers);



    List<CtripBigUser> findNoSyncBigUser(Map params);
}
